<?php
class Token{
	private $id;
	private $label;
	private $profileId;
	private $xcept;
	function __construct($id) {

		if (is_int($id)){
			if($id >= 0){
				$this->id=$id;
			}else{
				throw new FieldFormatException($_SESSION['translator']->idVal);
			}
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
	public function getId(){
		return $this->id;
	}
	public function getXcept(){
		return $this->xcept;
	}
	public function setXcept($xcept){
		$this->xcept = $xcept;
	}
	public function getLabel(){
		return $this->label;
	}

	public function getProfileId(){
		return $this->pack;
	}
	public function setLabel($label){
		$this->label = $label;
	}
	public function setProfileId($profId){
		if (is_int($profId)){
			if($profId > 0){
				$this->id=$profId;
			}else{
				throw new FieldFormatException($_SESSION['translator']->idVal);
			}
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}

}
?>